package com.bishe.psy.service;

import com.bishe.psy.model.ConUser;

import java.util.List;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: L
 * Date: 2024-03-28
 * Time: 17:31
 */
public interface IConUserService {

    //根据用户名查询用户
    ConUser ConselectByUsername(String username);

    //登录
    ConUser login(String username, String password);

    //根据id查询咨询师信息
    ConUser selectByPrimaryKey(Long id);

    //根据id新增咨询师发布帖子的数量
    void addOneArticleCountById(Long id);

    //帖子被删除，则更新当前用户数的发帖数，发帖数-1
    void subOneArticleCountById(Long id);

    //修改个人信息
    void modifyConInfo(ConUser conUser);

    //修改密码
    void modifyPassword(Long id,String oldPassword,String newPassword);

    //查询所有咨询师
    List<ConUser> selectAllInfo();


    //修改账号状态
    void updateDeleteStateByUsername(String username);

    //注册咨询师账号
    void createCon(ConUser conUser);
}
